package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.dto.FlashSessionDto;
import org.code.mallspringboot.mapper.SmsFlashPromotionSessionMapper;
import org.code.mallspringboot.pojo.SmsFlashPromotionSession;
import org.code.mallspringboot.service.SmsFlashPromotionSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SmsFlashPromotionSessionServiceImpl implements SmsFlashPromotionSessionService{

    @Autowired
    private SmsFlashPromotionSessionMapper smsFlashPromotionSessionMapper;

    @Override
    public List<SmsFlashPromotionSession> list() {
        return smsFlashPromotionSessionMapper.list();
    }

    @Override
    public int update_status(int id, int status) {
        return smsFlashPromotionSessionMapper.update_status(id, status);
    }

    @Override
    public int update(FlashSessionDto flashSessionDto) {
        return smsFlashPromotionSessionMapper.update(flashSessionDto);
    }

    @Override
    public int create(FlashSessionDto flashSessionDto) {
        return smsFlashPromotionSessionMapper.create(flashSessionDto);
    }

    @Override
    public int delete(int id) {
        return smsFlashPromotionSessionMapper.delete(id);
    }

    @Override
    public List<SmsFlashPromotionSession> selectList(int flashPromotionId) {
        return smsFlashPromotionSessionMapper.selectList(flashPromotionId);
    }
}




